package leasingcompany;

public abstract class Vechile {
    private String id;//车牌号
    private String brand;//品牌
    private  int dateRent;//日租金
    private boolean state=true;//状态

    public boolean isState() {
        return state;
    }
    public void setState(boolean state) {
        this.state = state;
    }

    public Vechile() {
    }

    public Vechile(String id, String brand, int dateRent) {
        this.id = id;
        this.brand = brand;
        this.dateRent = dateRent;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public int getDateRent() {
        return dateRent;
    }

    public void setDateRent(int dateRent) {
        this.dateRent = dateRent;
    }
    //租金
     public abstract double rent(int days);
        public abstract void show();

}
